package com.hwtx.form.domain.listener;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class ResourceChangeEvent extends ApplicationEvent {
    private final Long resourceId;
    private final ChangeType changeType;

    public ResourceChangeEvent(Object source, Long resourceId, ChangeType changeType) {
        super(source);
        this.resourceId = resourceId;
        this.changeType = changeType;
    }

    public enum ChangeType {
        ADD, UPDATE, DELETE;

    }
}
